package io.cici.cc.mybatis.lite.reflection;

import io.cici.cc.mybatis.lite.reflection.factory.ObjectFactory;
import io.cici.cc.mybatis.lite.reflection.factory.ObjectFactoryImpl;
import io.cici.cc.mybatis.lite.reflection.wrapper.DefaultObjectWrapperFactory;
import io.cici.cc.mybatis.lite.reflection.wrapper.ObjectWrapperFactory;


public final class SystemMetaObject {

    public static final ObjectFactory DEFAULT_OBJECT_FACTORY = new ObjectFactoryImpl();
    public static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY = new DefaultObjectWrapperFactory();

    private SystemMetaObject() {
        // Prevent Instantiation of Static Class
    }

    public static MetaDataObject forObject(Object object) {
        return MetaDataObject.forObject(object, DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY,
                new ReflectorFactoryImpl());
    }

    private static class NullObject {
    }

    public static final MetaDataObject NULL_META_OBJECT = MetaDataObject.forObject(new NullObject(),
            DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, new ReflectorFactoryImpl());

}
